﻿<%@ Page Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true"
    CodeFile="ViewTravelInsurance.aspx.cs" Inherits="Admin_travel_insurance_ViewTravelInsurance"
    MaintainScrollPositionOnPostback="true" Title="View Travel Insurance - ComparExpress Admin" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="contents">
        <table width="100%" cellpadding="3" cellspacing="0" border="0">
            <tr>
                <td colspan="2">
                    <h1>View Travel Insurance Info</h1>
                </td>
            </tr>
            <tr>
                <td style="width: 120px";>
                    Select Plan Type
                </td>
                <td>
                    <asp:DropDownList ID="ddlPolicyType" runat="server"
                        class="text" AutoPostBack="true">
                        <asp:ListItem Selected="True" Value="-1">Select</asp:ListItem>
                        <asp:ListItem Value="Individual">Individual</asp:ListItem>
                         <asp:ListItem Value="IndividualSpouse">Individual + Spouse</asp:ListItem>
                        <asp:ListItem Value="Family">Family</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
        </table>
        <div style="overflow: auto; width: 100%;">
            <asp:GridView ID="grvTADetails" runat="server" AllowPaging="True" AllowSorting="True"
                PageSize="10" AutoGenerateColumns="false" Cellspacing="3" CellPadding="3" Width="100%" DataKeyNames="TAInsId"
                DataSourceID="sqlDsTA" EmptyDataText="There are no data records to display." onRowDataBound="grvTADetails_RowDataBound"
                GridLines="None" OnSelectedIndexChanged="grvTADetails_SelectedIndexChanged" CssClass="admin_gridstyle" PagerStyle-CssClass="pgr">
                <Columns>
                    <asp:BoundField DataField="TAInsID" HeaderText="TAInsID" InsertVisible="False" ReadOnly="True"
                        SortExpression="TAInsId" Visible="False" />
                    <asp:BoundField DataField="InsurerName" HeaderText="Company Name" SortExpression="InsurerName" />
                    <asp:BoundField DataField="PlanName" HeaderText="Plan Name" SortExpression="PlanName" />
                    <asp:BoundField DataField="PlanType" HeaderText="Plan Type" SortExpression="PlanType" />
                   <%-- <asp:BoundField DataField="TripType" HeaderText="Trip Type" SortExpression="TripType" />--%>
                    <asp:BoundField DataField="CoverageLevel" HeaderText="Level of Coverage" SortExpression="CoverageLevel" />
                    <asp:CheckBoxField DataField="Status" HeaderText="Status" SortExpression="Status" />
                    <asp:CommandField ShowSelectButton="True" SelectText="Edit" />
                </Columns>
                <FooterStyle />
                <FooterStyle />
                <SelectedRowStyle />
                <HeaderStyle CssClass="admin_gridheader" />
                <EditRowStyle />
                <AlternatingRowStyle CssClass="admin_gridodd" />
                <RowStyle CssClass="admin_grideven" />
            </asp:GridView>
        </div>
        <asp:SqlDataSource ID="sqlDsTA" runat="server" ConnectionString="<%$ ConnectionStrings:CX_DBConnectionString %>"
            SelectCommand="sprocTAResultSelectItemListView" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:ControlParameter ControlID="ddlPolicyType" Name="CoverType" PropertyName="SelectedValue"
                    Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
    </div>
</asp:Content>
